{extend name="./oscshop/admin/view/public/base.html" /}
{block name="content"}
<div class="page-header">
<h1>	
	移动端
	<small>
		<i class="ace-icon fa fa-angle-double-right"></i>
		{$breadcrumb1}
	</small>
	<small>
		<i class="ace-icon fa fa-angle-double-right"></i>
		文字回复
	</small>
</h1>
</div>	
<div class="page-header">
	<a href="{:url('ReplyBackend/text_add')}" class="btn btn-primary">新增</a>
</div>	
	
<div class="row">
	<div class="col-xs-12">	
		<div class="table-responsive">
			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr>											
						<th>关键字</th>
						<th>启用</th>
						<th>操作</th>				
					</tr>
				</thead>
				<tbody>
						{volist name="list" id="data" empty="$empty"}
						<tr>
							
							<td>{$data.keyword}</td>
							<td>
								{switch name="data.status"}   
									{case value="1"}是{/case}
									{case value="0"}否{/case}									 
								{/switch}
							</td>
							<td>
								<a  class="btn btn-xs btn-info" href='{:url("ReplyBackend/text_edit",array("id"=>$data["tr_id"]))}'>
									<i class="fa fa-edit bigger-120"></i>
								</a> 
								<a class="delete btn btn-xs btn-danger" href='{:url("ReplyBackend/text_del",array("id"=>$data["rid"]))}' >
									<i class="fa fa-trash bigger-120"></i>
								</a>
							</td>
						</tr>
						{/volist}	
						
						<tr>
							<td colspan="20" class="page">{$list->render()}</td>
						</tr>
						<tr>
							<td colspan="20" class="page">总计 {$list->total()|default="0"} </td>
						</tr>
				</tbody>
				
			</table>
		</div>
	</div>
</div>
{/block}